package com.qf.service.impl;

import com.qf.mapper.UserMapper;
import com.qf.model.User;
import com.qf.service.UserService;
import com.qf.util.ResultData;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

@Service
public class UserServiceImpl implements UserService {
    @Autowired
    UserMapper userMapper;
    @Override
    public ResultData findUserByLogin(String username, String password) {
        User user = userMapper.findUserByLogin(username,password);
        if (user != null){
            return ResultData.ok();
        }
        return ResultData.fail();
    }
}
